﻿@model IEnumerable<DotNetProject.Models.Movie>
@using Resources

@{
    ViewBag.Title = "Home";
}

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title</h1>
            </hgroup>
        </div>
    </section>
}

<h2>@MVResources.homecontent</h2>

<div id="fotoSlider">
    <div id="inner-wrapper">
        <input checked type="radio" name="slide" class="control" id="Slide1"/>
        <label for="Slide1" id="s1"></label>
        <input type="radio" name="slide" class="control" id="Slide2"/>
        <label for="Slide2" id="s2"></label>
        <input type="radio" name="slide" class="control" id="Slide3"/>
        <label for="Slide3" id="s3"></label>
        <div class="overflow-wrapper">
            @foreach (var item in Model) {
                <a class="slide" href="@Url.Action("Details", "Movie", new { id = item.movieId })">
                    <img src="@Url.Content(item.movieImage)" alt="movie poster" runat="server"/>
                </a>
            }
        </div>
    </div>
</div>


